package com.lagou.rpc.center.handler;

import com.lagou.rpc.center.pojo.ServiceInfo;

import java.util.List;

/**
 * @author: wudong
 * @create: 2021-09-06 18:23
 **/
public interface ClientHandler {

    List<ServiceInfo> lookupServices(Class serverClass);

    void updateServiceData(Class serverClass, ServiceInfo serviceInfo, String data);

    void addListener(Class serverClass, ServerListener serverListener);

    boolean removeListener(Class serverClass, ServerListener serverListener);
}
